package ystr

import "crypto/md5"

func MD5Str(str string) string {
	c := md5.New()
	c.Write([]byte(str))
	res := c.Sum(nil)
	return string(res)
}

func MD5Bytes(b []byte) string {
	c := md5.New()
	c.Write(b)
	res := c.Sum(nil)
	return string(res)
}
